package org.example.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.SelectKey;
import org.example.pojo.User2;
import org.springframework.stereotype.Repository;


@Repository
public interface User2Mapper {

    @Insert("insert into  user2 values (#{id},#{username})")
    @SelectKey(statement = "select uuid()",before = true,keyProperty = "id",resultType = String.class)
    Integer insert(User2 user2);
}
